#include "ParserException.h"
#include <iostream>
#include <stdio.h>

#include "../../utils/log.h"

ParserException::ParserException() throw()
    : std::exception()
{
}

ParserException::ParserException(string_ptr msg) throw()
    : std::exception(), m_msg(msg)
{
  LOG_INFO << msg->c_str();
}

const char *ParserException::what() const throw()
{
  return m_msg->c_str();
}

ParserException::~ParserException() throw()
{
  fprintf(stderr, "%s\n", m_msg->c_str());
}
